package com.hexacta.hrs.test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import java.util.Collection;

/**
 * Custom assertions for tests.
 * 
 * @author tpollak
 */
public class Assertions {
    public static void assertCollectionSize(int expectedSize, Collection<?> actual) {
        assertNotNull(actual);
        assertEquals(expectedSize, actual.size());
    }

    public static void assertEmptyCollection(Collection<?> actual) {
        assertCollectionSize(0, actual);
    }
}
